package cn.com.dhcc.app.pub.core.util.settlement.compute.util;



/**
 * hash取摸运算
 * @author Administrator
 *
 */
public class HashModUtil {

	
	/**
	 * 取摸映射
	 * @param value
	 * @return
	 */
	public static int mod(String value,int mod){
		int hash = value.hashCode();
		return Math.abs(hash%mod);
	}
}
